package com.haiyi.activiti.engine.framework.template.freemarker;

import com.haiyi.activiti.engine.framework.template.object.FormObj;
import com.haiyi.activiti.engine.framework.template.object.TaskObj;
import com.haiyi.activiti.engine.framework.template.object.TemplateConfiguration;
import com.haiyi.activiti.engine.framework.template.object.UserObj;
import com.haiyi.activiti.engine.util.SpringHolder;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/12/10 10:44 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
public class FreemarkerBuilder {

    private FormObj formObj;
    private TaskObj taskObj;
    private UserObj userObj;
    private HttpServletRequest request;
    private Map<String,Object> processParams;
    private Map<String,Object> requestParams;
    private TemplateConfiguration configuration = SpringHolder.getBean(TemplateConfiguration.class);

    public FormObj getFormObj() {
        return formObj;
    }

    public void setFormObj(FormObj formObj) {
        this.formObj = formObj;
    }

    public TaskObj getTaskObj() {
        return taskObj;
    }

    public void setTaskObj(TaskObj taskObj) {
        this.taskObj = taskObj;
    }

    public UserObj getUserObj() {
        return userObj;
    }

    public void setUserObj(UserObj userObj) {
        this.userObj = userObj;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public Map<String, Object> getProcessParams() {
        return processParams;
    }

    public void setProcessParams(Map<String, Object> processParams) {
        this.processParams = processParams;
    }

    public Map<String, Object> getRequestParams() {
        return requestParams;
    }

    public void setRequestParams(Map<String, Object> requestParams) {
        this.requestParams = requestParams;
    }

    public TemplateConfiguration getConfiguration() {
        return configuration;
    }
}
